lib/commit: Add devino_cache_hits to txn stats
authorJonathan Lebon <jonathan@jlebon.com>
Fri, 2 Nov 2018 19:39:34 +0000 (15:39 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 5 Nov 2018 14:08:54 +0000 (14:08 +0000)
commit8eac5be030797607715d5a2d973c55edff78a8a2
tree08348f5aa79eef56dbc52a601bbd7742fa74c140
parent1dcebe8846335a1f306d599fb7172d84aaa7b0a0
lib/commit: Add devino_cache_hits to txn stats

I found this useful while hacking on rpm-ostree but I think it might be
useful enough to upstream. This stat is really helpful for validating
that a pipeline is hitting the devino cache sweet spot.

Closes: #1772
Approved by: cgwalters
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo.h
src/ostree/ot-builtin-commit.c
tests/test-basic-user.sh